package com.xsky.common.util;

import java.net.URISyntaxException;
import java.net.URL;


public class FilePathImpl 
{
	public String getLocalPath()
	{
		URL path;
		path = FilePathImpl.class.getResource("/");
		// path = new File("").getPath().concat(filePath);
		String fpath = "";
		try
		{
			fpath = (path.toURI()).toString();
			fpath = fpath.substring(6);
			//System.out.println("fpath:" + fpath);
		}
		catch (URISyntaxException e2)
		{
			e2.printStackTrace();
		}
		fpath = fpath.split("WEB-INF")[0];
		System.out.println(fpath);
		return fpath;
	}
}
